/*
TinyXmlStd http://code.google.com/p/tinyxmlstd/
based on TinyXml, www.sourceforge.net/projects/tinyxml
Original code (2.0 and earlier )copyright (c) 2000-2006 Lee Thomason (www.grinninglizard.com)

This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any
damages arising from the use of this software.

Permission is granted to anyone to use this software for any
purpose, including commercial applications, and to alter it and
redistribute it freely, subject to the following restrictions:

1. The origin of this software must not be misrepresented; you must
not claim that you wrote the original software. If you use this
software in a product, an acknowledgment in the product documentation
would be appreciated but is not required.

2. Altered source versions must be plainly marked as such, and
must not be misrepresented as being the original software.

3. This notice may not be removed or altered from any source
distribution.
*/

#ifndef TINYXMLSTD_UNICODE_INCLUDED
#define TINYXMLSTD_UNICODE_INCLUDED

namespace tinyxmlstd
{
#ifdef _UNICODE
	typedef std::wstring String;
#else
	typedef std::string String;
#endif

#ifdef _UNICODE
	typedef wchar_t Char;
	typedef wchar_t UChar;
#else
	typedef char Char;
	typedef unsigned char UChar;
#endif

	
#ifdef _UNICODE
	typedef std::wstringstream Stringstream;
	typedef std::wostringstream Ostringstream;
	typedef std::wistringstream Istringstream;
	typedef std::wistream Istream;
	typedef std::wostream Ostream;
	typedef std::wifstream Ifstream;
#else
	typedef std::stringstream Stringstream;
	typedef std::ostringstream Ostringstream;
	typedef std::istringstream Istringstream;
	typedef std::istream Istream;
	typedef std::ostream Ostream;
	typedef std::ifstream Ifstream;
#endif
}


#ifdef _UNICODE
	#define Strchr wcschr
	#define Strlen wcslen
	#define Strncmp wcsncmp
#else
	#define Strchr strchr
	#define Strlen strlen
	#define Strncmp strncmp
#endif


#ifdef _UNICODE
	#define WX_CSTR(x) x.wc_str()
#else
	#define WX_CSTR(x) x.c_str()
#endif

#ifdef _T
//#pragma message("_T already defined...")
#else
#ifdef _UNICODE
	#define _T(x) L##x
#else
	#define _T(x) x
#endif
#endif

#endif